package DB;

import Model.Product;

import java.util.ArrayList;

public interface ProductDBIF {

    //Find product
    public Product findProduct(int id);

    //Insert product
    public int insertProduct(Product product);

    //Find all product
    public ArrayList<Product> getAllProducts(boolean retrieveAssociation);

    //Delete product
    public int deleteProduct(int id);

    //Search product
    public ArrayList<Product> findProducts(String name, boolean retrieveAssociation);
}
